<?php
class WMessages extends CWidget
{	
	public function run()
	{
		$messages = array(
			'success' => Cookies::get('success')
		);
		Cookies::set('success', null);
		$this->render('messages', $messages);
	}
}

?>
